package com.zuipin.service;

import java.math.BigDecimal;
import java.util.List;

import com.zuipin.entity.CashBackRecord;
import com.zuipin.enums.CashBackRecordType;
import com.zuipin.framework.exception.CustomException;

/**
 * @ClassName: ICashBackRecordService
 * @author wuyicheng
 * @time 2017年3月27日下午3:48:55
 */
public interface ICashBackRecordService {
	
	public CashBackRecord findById(Long id);
	
	public List<CashBackRecord> findListByMemberId(Long memberId);
	
	public void insert(CashBackRecord cashBackRecord);
	
	public void update(CashBackRecord cashBackRecord);
	
	public void deleteById(Long id);
	
	/**
	 * @throws CustomException 
	 *
	 * @Title: updateCashBackAmount 
	 * @author: wuyicheng
	 * @date: 2017年4月25日下午8:46:34 
	 * @param memberId
	 * @param sysId
	 * @param createId
	 * @param updateId
	 * @param alterPoint
	 * @param cashBackRecordType
	 * @param remark
	 * @return: void
	 * @throws 
	 */
	public void updateCashBackAmount(Long memberId, Long sysId, Long createId, Long updateId,
			BigDecimal amount, CashBackRecordType cashBackRecordType, String remark)
			throws CustomException;
	
}
